<div>
<div class="span-4 prepend-2">
<?php echo CHtml::link($model->expenseDate, array(
	'materialReceipt/viewExpense',
	'id' => $model->id
),array('target'=>'_blank')); ?>
</div>
<div class="span-5">
<?php echo $model->project->name; ?>
</div>
<div class="span-3">
<?php echo $model->receiptCount; ?> 条票据
</div>
<div class="span-3">
合计: <?php echo Yii::app()->format->formatCurrency($model->totalPrice); ?>
</div>
<div class="clear"></div>
<?php if ($model->note) { ?>
<div class="span-2 label">
备注:
</div>
<div class="span-15 last">
<?php echo $model->note; ?>
</div>
<div class="clear"></div>
<?php } ?>
</div>
<div class="form">
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'account-token-attach-expense',
			'enableAjaxValidation' => false,
			'action'=>array('attachMaterialExpense')
		));
?>
	<div class="row">
		<label>添加报销单</label>
		<?php echo CHtml::hiddenField('accountTokenId', $accountTokenId); ?>
		<?php echo CHtml::hiddenField('materialExpenseId', $model->id); ?>
		<?php echo CHtml::submitButton('添加'); ?>
	</div>
<?php $this->endWidget(); ?>
</div>